﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LaughTest.Domain;
using Laugh.Data.DatabaseCfg;

namespace LaughTest.DatabaseConfiguration
{
    public class SqlServer1 : Database
    {
        public override void DatabaseConfiguration(IDatabaseBuilder dbBuilder)
        {
            dbBuilder.ConnectionString(@"Data Source=.; Initial Catalog=mytest1; Integrated Security=True;")
                .UsingDatabase(DatabaseType.SqlServer);

            var types = new List<Type>();
            types.Add(typeof(BookMapping));

            dbBuilder.AddMappings(types);
        }
    }
}
